<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
</head>

<body>
<? 
$username = "jen1";
$getTheStudent = getTheStudent();

	if (!$result){
		echo "got nothing"	;
		}
		else
		{
			echo "got something";
			}
?>
</body>
</html>
<?

function getTheStudent()
{
	$con = mysqli_connect("localhost", "root", "Frankie28", "dblr12aas") or die ("Could not execute query");
	$query = "SELECT * FROM student WHERE username ='jen1'";
	$result = mysqli_query($con,$query) or die ("Could not execute query");
		if (!$result){
		echo "got nothing"	;
		}
		else
		{
			echo "got something";
			}
		return mysqli_fetch_assoc($result);
}		
?>